package test.core.safe;

import hyl.core.AIni;
import hyl.core.safe.MyBase64;
import hyl.core.safe.MyDes;

public class testDes {
	public static void main(String[] args) {
	
		String dataString="在下次V咋三个多";

		String key= AIni.PKEY+"001";
		//String key= "hyl/zdy/37798955"+"001";
		String jm=MyDes.f加密64(dataString, key);
		System.out.println(jm);
		String mm1=MyDes.f解密64(jm, key);
		System.out.println(mm1);
		
		byte[] jm2=MyDes.f加密(dataString.getBytes(), key);
		System.out.println(MyBase64.encodeUri(jm2));		
		byte[] mm2=MyDes.f解密(jm2, key);
		System.out.println(new String(mm2));		
		
		
		
		 jm=MyDes.f加密64(dataString);
		System.out.println(jm);
		 mm1=MyDes.f解密64(jm);
		System.out.println(mm1);
		
	
	}
}
